/* eslint-disable max-classes-per-file */
/*
 * @Description:
 * @Version: 2.0
 * @Autor: wiz
 * @Date: 2023-05-13 14:31:09
 * @LastEditors: wiz
 * @LastEditTime: 2024-07-27 13:36:11
 */
import lexicon from '@/lib/lexicon';
import { T_stdReq } from './base/stdReq';

export class T_defValRes {
  success: boolean;

  msg: string;

  data: {
    total: number;
    data: object;
  };
}
export interface I_defValRes extends T_defValRes {}
export class T_defVal extends T_stdReq {
  private url: string = lexicon.url.defv;

  protected rowID: string;

  protected mainfunName: string;

  constructor() {
    super();
    this.rowID = '';
    this.mainfunName = '';
  }

  public setRowID(p: string): T_defVal {
    this.rowID = p;

    return this;
  }

  public setMainfunName(p: string): T_defVal {
    this.mainfunName = p;
    return this;
  }

  public getRowID(): string {
    return this.rowID;
  }

  public getMainfunName(): string {
    return this.mainfunName;
  }
}

export interface I_devVal extends T_defVal {}
